/*     */ package nc.vo.am.bill;
/*     */ 
/*     */ import java.util.ArrayList;
/*     */ import java.util.Vector;
/*     */ import nc.vo.bd.BDMsg;
/*     */ import nc.vo.bd.def.IDefAccess;
/*     */ import nc.vo.pub.NullFieldException;
/*     */ import nc.vo.pub.SuperVO;
/*     */ import nc.vo.pub.ValidationException;
/*     */ import nc.vo.pub.lang.UFBoolean;
import nc.vo.pub.lang.UFDate;
/*     */ 
/*     */ public class JobbasfilVO extends SuperVO
/*     */   implements IDefAccess
/*     */ {
/*     */   private static final long serialVersionUID = 2354966428240369907L;
/*     */   private UFDate begindate;
/*     */   private String def1;
/*     */   private String def10;
/*     */   private String def11;
/*     */   private String def12;
/*     */   private String def13;
/*     */   private String def14;
/*     */   private String def15;
/*     */   private String def16;
/*     */   private String def17;
/*     */   private String def18;
/*     */   private String def19;
/*     */   private String def2;
/*     */   private String def20;
/*     */   private String def3;
/*     */   private String def4;
/*     */   private String def5;
/*     */   private String def6;
/*     */   private String def7;
/*     */   private String def8;
/*     */   private String def9;
/*     */   private UFDate enddate;
/*     */   private UFBoolean finishedflag;
/*     */   private UFDate forecastenddate;
/*  51 */   private boolean isFirstLevel = false;
/*     */ 
/*  55 */   private boolean isRef = true;
/*     */   private String jobclName;
/*     */   private String jobcode;
/*     */   private String jobname;
/*     */   private Vector phaData;
/*     */   private String pk_corp;
/*     */   private String pk_jobbasfil;
/*     */   private String pk_jobcl;
/*     */   private String pk_jobtype;
/*     */   private String sealflag;


			public static final String SEALFLAG = "sealflag";
			public static final String PK_JOBTYPE = "pk_jobtype";
			public static final String PK_JOBCL = "pk_jobcl";
			public static final String PK_JOBBASFIL = "pk_jobbasfil";
			public static final String PK_CORP = "pk_corp";
			public static final String PHADATA = "phaData";
			public static final String JOBNAME = "jobname";
			public static final String JOBCODE = "jobcode";
			public static final String JOBCLNAME = "jobclName";
			public static final String ISREF = "isRef";
			public static final String ISFIRSTLEVEL = "isFirstLevel";
			public static final String FORECASTENDDATE = "forecastenddate";
			public static final String FINISHEDFLAG = "finishedflag";
			public static final String ENDDATE = "enddate";
			public static final String BEGINDATE = "begindate";
			public static final String DEF1 = "def1";



/*     */ 
/*     */   public JobbasfilVO()
/*     */   {
/*     */   }
/*     */ 
/*     */   public JobbasfilVO(String pk_jobbasfil)
/*     */   {
/*  86 */     this.pk_jobbasfil = pk_jobbasfil;
/*     */   }
/*     */ 
/*     */   public Object clone()
/*     */   {
/*  96 */     Object o = null;
/*     */     try {
/*  98 */       o = super.clone(); } catch (Exception e) {
/*     */     }
/* 100 */     JobbasfilVO jobbasfil = (JobbasfilVO)o;
/*     */ 
/* 104 */     return jobbasfil;
/*     */   }
/*     */ 
/*     */   public UFDate getBegindate()
/*     */   {
/* 113 */     return this.begindate;
/*     */   }
/*     */ 
/*     */   public String getDef1()
/*     */   {
/* 122 */     return this.def1;
/*     */   }
/*     */ 
/*     */   public String getDef10()
/*     */   {
/* 131 */     return this.def10; }
/*     */ 
/*     */   public String getDef11() {
/* 134 */     return this.def11; }
/*     */ 
/*     */   public String getDef12() {
/* 137 */     return this.def12; }
/*     */ 
/*     */   public String getDef13() {
/* 140 */     return this.def13; }
/*     */ 
/*     */   public String getDef14() {
/* 143 */     return this.def14; }
/*     */ 
/*     */   public String getDef15() {
/* 146 */     return this.def15; }
/*     */ 
/*     */   public String getDef16() {
/* 149 */     return this.def16; }
/*     */ 
/*     */   public String getDef17() {
/* 152 */     return this.def17; }
/*     */ 
/*     */   public String getDef18() {
/* 155 */     return this.def18; }
/*     */ 
/*     */   public String getDef19() {
/* 158 */     return this.def19;
/*     */   }
/*     */ 
/*     */   public String getDef2()
/*     */   {
/* 167 */     return this.def2;
/*     */   }
/*     */ 
/*     */   public String getDef20() {
/* 171 */     return this.def20;
/*     */   }
/*     */ 
/*     */   public String getDef3()
/*     */   {
/* 180 */     return this.def3;
/*     */   }
/*     */ 
/*     */   public String getDef4()
/*     */   {
/* 189 */     return this.def4;
/*     */   }
/*     */ 
/*     */   public String getDef5()
/*     */   {
/* 198 */     return this.def5;
/*     */   }
/*     */ 
/*     */   public String getDef6()
/*     */   {
/* 207 */     return this.def6;
/*     */   }
/*     */ 
/*     */   public String getDef7()
/*     */   {
/* 216 */     return this.def7;
/*     */   }
/*     */ 
/*     */   public String getDef8()
/*     */   {
/* 225 */     return this.def8;
/*     */   }
/*     */ 
/*     */   public String getDef9()
/*     */   {
/* 234 */     return this.def9;
/*     */   }
/*     */ 
/*     */   public String getDefValue(int index)
/*     */   {
/* 252 */     return ((String)getAttributeValue("def" + index));
/*     */   }
/*     */ 
/*     */   public UFDate getEnddate()
/*     */   {
/* 261 */     return this.enddate;
/*     */   }
/*     */ 
/*     */   public String getEntityName()
/*     */   {
/* 271 */     return "Jobbasfil";
/*     */   }
/*     */ 
/*     */   public UFBoolean getFinishedflag()
/*     */   {
/* 280 */     return this.finishedflag;
/*     */   }
/*     */ 
/*     */   public UFDate getForecastenddate()
/*     */   {
/* 289 */     return this.forecastenddate;
/*     */   }
/*     */ 
/*     */   public String getJobclName()
/*     */   {
/* 297 */     return this.jobclName;
/*     */   }
/*     */ 
/*     */   public String getJobcode()
/*     */   {
/* 306 */     return this.jobcode;
/*     */   }
/*     */ 
/*     */   public String getJobname()
/*     */   {
/* 315 */     return this.jobname; }
/*     */ 
/*     */   public String getParentPKFieldName() {
/* 318 */     return null;
/*     */   }
/*     */ 
/*     */   public Vector getPhaData()
/*     */   {
/* 326 */     return this.phaData;
/*     */   }
/*     */ 
/*     */   public String getPk_corp()
/*     */   {
/* 335 */     return this.pk_corp;
/*     */   }
/*     */ 
/*     */   public String getPk_jobcl()
/*     */   {
/* 343 */     return this.pk_jobcl;
/*     */   }
/*     */ 
/*     */   public String getPk_jobtype()
/*     */   {
/* 352 */     return this.pk_jobtype; }
/*     */ 
/*     */   public String getPKFieldName() {
/* 355 */     return "pk_jobbasfil";
/*     */   }
/*     */ 
/*     */   public String getPrimaryKey()
/*     */   {
/* 365 */     return this.pk_jobbasfil;
/*     */   }
/*     */ 
/*     */   public String getSealflag()
/*     */   {
/* 374 */     this.sealflag = "N";
/* 375 */     return this.sealflag; }
/*     */ 
/*     */   public String getTableName() {
/* 378 */     return "bd_jobbasfil";
/*     */   }
/*     */ 
/*     */   public boolean isFirstLevel()
/*     */   {
/* 387 */     return this.isFirstLevel;
/*     */   }
/*     */ 
/*     */   public boolean isIsRef()
/*     */   {
/* 396 */     return this.isRef;
/*     */   }
/*     */ 
/*     */   public boolean isRef()
/*     */   {
/* 404 */     return this.isRef;
/*     */   }
/*     */ 
/*     */   public void setBegindate(UFDate newBegindate)
/*     */   {
/* 414 */     this.begindate = newBegindate;
/*     */   }
/*     */ 
/*     */   public void setDef1(String newDef1)
/*     */   {
/* 424 */     this.def1 = newDef1;
/*     */   }
/*     */ 
/*     */   public void setDef10(String newDef10)
/*     */   {
/* 434 */     this.def10 = newDef10;
/*     */   }
/*     */ 
/*     */   public void setDef11(String def11) {
/* 438 */     this.def11 = def11;
/*     */   }
/*     */ 
/*     */   public void setDef12(String def12) {
/* 442 */     this.def12 = def12;
/*     */   }
/*     */ 
/*     */   public void setDef13(String def13) {
/* 446 */     this.def13 = def13; }
/*     */ 
/*     */   public void setDef14(String def14) {
/* 449 */     this.def14 = def14;
/*     */   }
/*     */ 
/*     */   public void setDef15(String def15) {
/* 453 */     this.def15 = def15;
/*     */   }
/*     */ 
/*     */   public void setDef16(String def16) {
/* 457 */     this.def16 = def16;
/*     */   }
/*     */ 
/*     */   public void setDef17(String def17) {
/* 461 */     this.def17 = def17;
/*     */   }
/*     */ 
/*     */   public void setDef18(String def18) {
/* 465 */     this.def18 = def18;
/*     */   }
/*     */ 
/*     */   public void setDef19(String def19) {
/* 469 */     this.def19 = def19;
/*     */   }
/*     */ 
/*     */   public void setDef2(String newDef2)
/*     */   {
/* 480 */     this.def2 = newDef2;
/*     */   }
/*     */ 
/*     */   public void setDef20(String def20)
/*     */   {
/* 489 */     this.def20 = def20;
/*     */   }
/*     */ 
/*     */   public void setDef3(String newDef3)
/*     */   {
/* 500 */     this.def3 = newDef3;
/*     */   }
/*     */ 
/*     */   public void setDef4(String newDef4)
/*     */   {
/* 511 */     this.def4 = newDef4;
/*     */   }
/*     */ 
/*     */   public void setDef5(String newDef5)
/*     */   {
/* 522 */     this.def5 = newDef5;
/*     */   }
/*     */ 
/*     */   public void setDef6(String newDef6)
/*     */   {
/* 532 */     this.def6 = newDef6;
/*     */   }
/*     */ 
/*     */   public void setDef7(String newDef7)
/*     */   {
/* 542 */     this.def7 = newDef7;
/*     */   }
/*     */ 
/*     */   public void setDef8(String newDef8)
/*     */   {
/* 552 */     this.def8 = newDef8;
/*     */   }
/*     */ 
/*     */   public void setDef9(String newDef9)
/*     */   {
/* 562 */     this.def9 = newDef9;
/*     */   }
/*     */ 
/*     */   public void setDefValue(String value, int index)
/*     */   {
/* 580 */     setAttributeValue("def" + index, value);
/*     */   }
/*     */ 
/*     */   public void setEnddate(UFDate newEnddate)
/*     */   {
/* 590 */     this.enddate = newEnddate;
/*     */   }
/*     */ 
/*     */   public void setFinishedflag(UFBoolean newFinishedflag)
/*     */   {
/* 600 */     this.finishedflag = newFinishedflag;
/*     */   }
/*     */ 
/*     */   public void setForecastenddate(UFDate newForecastenddate)
/*     */   {
/* 610 */     this.forecastenddate = newForecastenddate;
/*     */   }
/*     */ 
/*     */   public void setIsFirstLevel(boolean newIsFirstLevel)
/*     */   {
/* 618 */     this.isFirstLevel = newIsFirstLevel;
/*     */   }
/*     */ 
/*     */   public void setIsRef(boolean newIsRef)
/*     */   {
/* 626 */     this.isRef = newIsRef;
/*     */   }
/*     */ 
/*     */   public void setJobclName(String newJobclName)
/*     */   {
/* 634 */     this.jobclName = newJobclName;
/*     */   }
/*     */ 
/*     */   public void setJobcode(String newJobcode)
/*     */   {
/* 644 */     this.jobcode = newJobcode;
/*     */   }
/*     */ 
/*     */   public void setJobname(String newJobname)
/*     */   {
/* 654 */     this.jobname = newJobname;
/*     */   }
/*     */ 
/*     */   public void setPhaData(Vector newPhaData)
/*     */   {
/* 662 */     this.phaData = newPhaData;
/*     */   }
/*     */ 
/*     */   public void setPk_corp(String newPk_corp)
/*     */   {
/* 672 */     this.pk_corp = newPk_corp;
/*     */   }
/*     */ 
/*     */   public void setPk_jobcl(String newPk_jobcl)
/*     */   {
/* 680 */     this.pk_jobcl = newPk_jobcl;
/*     */   }
/*     */ 
/*     */   public void setPk_jobtype(String newPk_jobtype)
/*     */   {
/* 690 */     this.pk_jobtype = newPk_jobtype;
/*     */   }
/*     */ 
/*     */   public void setPrimaryKey(String pk_jobbasfil)
/*     */   {
/* 700 */     this.pk_jobbasfil = pk_jobbasfil;
/*     */   }
/*     */ 
/*     */   public void setSealflag(String newSealflag)
/*     */   {
/* 710 */     this.sealflag = newSealflag;
/*     */   }
/*     */ 
/*     */   public void validate()
/*     */     throws ValidationException
/*     */   {
/* 721 */     ArrayList errFields = new ArrayList();
/*     */ 
/* 728 */     if (this.pk_jobtype == null) {
/* 729 */       errFields.add(new String("pk_jobtype"));
/*     */     }
/* 731 */     if (this.jobname == null) {
/* 732 */       errFields.add(new String("jobname"));
/*     */     }
/* 734 */     if (this.jobcode == null) {
/* 735 */       errFields.add(new String("jobcode"));
/*     */     }
/* 737 */     if (this.pk_corp == null) {
/* 738 */       errFields.add(new String("pk_corp"));
/*     */     }
/*     */ 
/* 741 */     StringBuffer message = new StringBuffer();
/* 742 */     message.append(BDMsg.MSG_NULL_FIELD());
/* 743 */     if (errFields.size() > 0) {
/* 744 */       Object[] temp = errFields.toArray();
/* 745 */       message.append(temp[0]);
/* 746 */       for (int i = 1; i < temp.length; ++i) {
/* 747 */         message.append(", ");
/* 748 */         message.append(temp[i]);
/*     */       }
/*     */ 
/* 751 */       throw new NullFieldException(message.toString());
/*     */     }
/*     */   }
/*     */ }
